
from pydantic import Field
from pydantic_settings import BaseSettings, SettingsConfigDict
from pathlib import Path


class Settings(BaseSettings):

    model_config = SettingsConfigDict(
        env_file=Path(__file__).parent.parent/ '.env',
        env_file_encoding="utf-8"
    )

    VERSION: str = '1.0'

    DEBUG: bool = True

    # 大模型配置
    LLM_URI : str = Field(default='', description='大模型URL')
    LLM_MODEL: str = Field(default='', description='大模型名称')
    LLM_API_KEY: str = Field(default='', description='API-KEY')
    USE_THINKING: bool = True

    # 问数查询地址
    DATA_SERVER_URI: str = Field(default='', description='问数查询地址，获取用户信息 & 智能问数查询')
